The command stop is used to terminate a macro or a fitting function defined by the user. However, it can also be used in a script file in order to stop execution at a certain point. In this case, an warning message will report that stop is being used outside a macro or function and the file from which the command was found will be considered as at the end of file (EOF).
macro, set function